{% extends 'starter.html' %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}编辑客户信息{% endblock title %}</title>
</head>
<body>
{% block page_header %}
        客户信息
        <small>{{ label }}</small>

{% endblock page_header %}
{% block content %}
    <form class="form-horizontal col-sm-offset-1 col-sm-10" method="post">
    {% csrf_token %}
    {% for field in customer_form %}
        <div class="form-group">
            <label for="{{ field.id_for_label }}" class="col-sm-2 control-label">{{ field.label }}</label>
            <div class="col-sm-10">
                {{ field }}
                <span class="text-danger">{{ field.errors.0 }}</span>
            </div>
        </div>

    {% endfor %}
    <input type="submit" class="btn btn-success" value="提交">
{% endblock content %}

</body>
</html>